package com.fqgj.sentry.manage.service;

import com.fqgj.sentry.common.utils.ApiPage;
import com.fqgj.sentry.manage.entity.McRoleEntity;

import java.util.List;

/**
 * Created by ykpbean kangping.ying@yuntu-inc.com
 *
 * @description
 * @create 2017-07-13 下午5:37
 */


public interface RoleService {

    /**
     * 查询商户角色列表
     *
     * @param merchantId
     * @return
     */
    List<McRoleEntity> selectByMerchantForPage(Long merchantId, ApiPage page);

    /**
     *
     * @param merchantId
     * @return
     */
    List<McRoleEntity> selectListByMerchant(Long merchantId);


    /**
     * 删除角色
     *
     * @param roleId
     * @return
     */
    Integer deleteRole(Long roleId);

    /**
     * 新增角色
     *
     * @param roleEntity
     * @return
     */
    McRoleEntity insert(McRoleEntity roleEntity);

    /**
     * 修改角色
     *
     * @param roleEntity
     * @return
     */
    Integer update(McRoleEntity roleEntity);


}
